var Graphics = function()
{
	this.canvas = document.getElementById("myCanvas");
	this.ctx    = this.canvas.getContext("2d");
	
	this.clear = function()
	{
		this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);
		this.ctx.fillStyle = "white";
	}
	
	this.DrawText = function(text,x,y,font,color)
	{
		this.ctx.fillStyle = color;
		this.ctx.font = font;
		this.ctx.fillText(text,x,y);	
	}
	
	this.DrawImage = function(img, x, y)
	{
		this.ctx.drawImage(img, x, y);
	}
}
var graphics = new Graphics();